import storage from 'storejs'

export function getToken() {
  return storage.get('companytoken')
}

export function removeToken() {
  localStorage.setItem('companytoken', '')
  storage.set('companytoken', '')
  storage.set('userInfo', {})
  storage.set('platformName', '')
  setTimeout(() => {
    location.reload()
  }, 1000)
}
